<?
/**
 * VoiceOne frontend configuration file
 * @package voiceone
 * @subpackage  globals
 */

/** 
 * Username for voiceone_webservices
 * 
 * $soapUserName and $soapPassword should match $htaccessUsername and $htaccessPassword  in "/voiceone_webservices/config/config.inc.php" file
 * @see $htaccessUsername
 * @see $htaccessPassword
 * @see $soapWsdl
 * @global string $soapUserName 
 */
$soapUserName = "root";

/** 
 * Password for voiceone_webservices
 *
 * $soapUserName and $soapPassword should match $htaccessUsername and $htaccessPassword  in /voiceone_webservices/config/config.inc.php file
 * @see $soapWsdl
 * @global string $soapPassword
 */
$soapPassword = "voiceone";

/** 
 * Hostname for voiceone_webservices
 *
 * Hostname for voiceone_webservices
 * @see $soapWsdl
 * @global string $soapHostname
 */
$soapHostname = "10.110.1.40";

/** 
 * Relative path of voiceone_webservices
 *
 * Used in $soapWsdl
 * Example: "/voiceone_webservices/"
 * @see $soapWsdl
 * @global string $soapAddress
 */
$soapAddress  = "/voiceone_webservices/";

/** 
 * URL of voiceone_webservices
 *
 * URL to access voiceone_webservices
 * @global string $soapWsdl
 */
$soapWsdl = "http://$soapUserName:$soapPassword@$soapHostname".$soapAddress."server.php?wsdl";

/** 
 * Default Language
 *
 * Check available languages in  "/voiceone/admin/public/lang/"
 * Currently supported languages: "de","en","it". Visit the documentation on the website to see how to translate voiceone into your own language
 * @link http://www.voiceone.it 
 * @global string $cwLanguage
 */
$cwLanguage="en";

/**
 * ---------------------------------------------------------------------------------------------
 * Preparation for the new Language-System with gettext / php-gettext
 * This part is current in development and will be activated as the whole integration is done.
 * ---------------------------------------------------------------------------------------------
 * The native gettext implementation is faster than the custom php-gettext
 * It will increase the speed significant, because the languge will be cached.
 *
 *  $cw_lang          : !case sensitive! Set here your prefered language in ISO-Norm (e.g. en_US, de_DE, ... )
 *  $domain           : !case sensitive! Do NOT change this setting, otherwise languages may not work proper
 *                      (this is the name of the .mo file)
 *  $encoding         : !case sensitive! Sets the encoding (e.g. UTF-8, ISO-8859-1)
 */
$cw_lang = 'en_US';
$domain = 'voiceone';
$encoding = 'UTF-8';

/**
 * VoiceOne Software Version
 *
 * @global string $cw_version
 */
$cw_version="0.7.1";

/** 
 * VoiceOne Plugin Version
 *
 * Plugin version number matches the voiceone software version when changes have been made to the plugin system
 * Plugin version only changes, if the plugin structure changes. 
 * So if changes are made to the plugin structure, then the plugin version should match the voiceone version of that release
 * The plugin version number is stored in the plugin, together with the Voiceone Version the plugin was build with
 * This allows to ensure which plugins work with which version of voiceone.
 * 
 * @global string $cw_plugin_version
 */
$cw_plugin_version="0.4pre3";

/** 
 * Physical path to the admin/ folder for voiceone
 *
 * Example: "/var/www/html/voiceone/admin/"
 * @global string $absBasePath
 */
$absBasePath=substr(dirname(__FILE__),0,strlen(dirname(__FILE__))-6);

/** 
 * Relative path to the admin/ folder for voiceone: 
 *
 * Example: "/voiceone/admin/"
 * @global string $relBasePath
 */
$relBasePath="/".basename(substr(dirname(__FILE__),0,strlen(dirname(__FILE__))-12))."/admin/";

/** 
 * Enable soapWrapper for voiceone_webservice
 * 
 * This permit the best performance. If this is set, also $webserviceAbsPath must be set.
 * @see webserviceAbsPath
 * @global string $soapWrapper
 */
$soapWrapper=true;

/** 
 * Foldername of voiceone
 *
 * Example: "voiceone"
 * @global string $voiceoneDirName
 */
$voiceoneDirName="voiceone";

/** 
 * Foldername of voiceone_webservices
 *
 * Example: "voiceone_webservices"
 * @global string $voiceoneWSDirName
 */
$voiceoneWSDirName="voiceone_webservices";

/** 
 * Physical path of voiceone_webservices
 *
 * Example: "/var/www/html/voiceone_webservices/" or realpath($absBasePath."../../".$voiceoneWSDirName."/")."/"
 * Need to be set, if $soapWrapper=true
 * @see $soapWrapper
 * @global string $webserviceAbsPath
 */
$webserviceAbsPath=realpath($absBasePath."../../".$voiceoneWSDirName."/")."/";

/** 
 * IVR upload path
 * @global string $ivrPath
 */
$ivrPath = $absBasePath."../sandbox/";

/** 
 * Plugin package absolute path
 * @global string $pluginPath
 * @todo find a way to get access to the URL for download of plugins based on $absPluginPath
 * @see writePluginPackage() in functions.php
 */
$absPluginPath = $absBasePath."../sandbox/plugins/";

/** 
 * Path to script that converts and moves recordings via IVR menu
 *
 * The script referenced must be added to /etc/sudoers
 * @global string $ivrMoveFile
 */
$ivrMoveFile = "sudo ".$absBasePath."public/script/convert_and_move.sh";

?>
